.class public Lcom/teewoo/app/bus/ui/WeatheTab;
.super Ljava/lang/Object;
.source "WeatheTab.java"

# interfaces
.implements Landroid/widget/TabHost$TabContentFactory;


# static fields
.field private static final TEMPERATURE_SINGAL:Ljava/lang/String; = "\u00b0C"

.field private static final WEATHER_SP_CITYNAME:Ljava/lang/String; = "weather_sp_cityname"

.field private static final WEATHER_SP_CITY_POSITION:Ljava/lang/String; = "weather_sp_city_pos"

.field private static final WEATHER_SP_CURRENENT_CONDITON:Ljava/lang/String; = "weather_sp_currenent_conditon"

.field private static final WEATHER_SP_CURRENENT_HUMIDITY:Ljava/lang/String; = "weather_sp_currenent_humidity"

.field private static final WEATHER_SP_CURRENENT_ICON:Ljava/lang/String; = "weather_sp_currenent_icon"

.field private static final WEATHER_SP_CURRENENT_TEMP:Ljava/lang/String; = "weather_sp_currenent_temp"

.field private static final WEATHER_SP_CURRENENT_WIND:Ljava/lang/String; = "weather_sp_currenent_wind"

.field private static final WEATHER_SP_DAY1_CONDITION:Ljava/lang/String; = "weather_sp_day1_condition"

.field private static final WEATHER_SP_DAY1_ICON:Ljava/lang/String; = "weather_sp_day1_icon"

.field private static final WEATHER_SP_DAY1_OF_WEEK:Ljava/lang/String; = "weather_sp_day1_of_week"

.field private static final WEATHER_SP_DAY1_TEMP:Ljava/lang/String; = "weather_sp_day1_temp"

.field private static final WEATHER_SP_DAY2_CONDITION:Ljava/lang/String; = "weather_sp_day2_condition"

.field private static final WEATHER_SP_DAY2_ICON:Ljava/lang/String; = "weather_sp_day2_icon"

.field private static final WEATHER_SP_DAY2_OF_WEEK:Ljava/lang/String; = "weather_sp_day2_of_week"

.field private static final WEATHER_SP_DAY2_TEMP:Ljava/lang/String; = "weather_sp_day2_temp"

.field private static final WEATHER_SP_DAY3_CONDITION:Ljava/lang/String; = "weather_sp_day3_condition"

.field private static final WEATHER_SP_DAY3_ICON:Ljava/lang/String; = "weather_sp_day3_icon"

.field private static final WEATHER_SP_DAY3_OF_WEEK:Ljava/lang/String; = "weather_sp_day3_of_week"

.field private static final WEATHER_SP_DAY3_TEMP:Ljava/lang/String; = "weather_sp_day3_temp"

.field private static final WEATHER_SP_DAY4_CONDITION:Ljava/lang/String; = "weather_sp_day4_condition"

.field private static final WEATHER_SP_DAY4_ICON:Ljava/lang/String; = "weather_sp_day4_icon"

.field private static final WEATHER_SP_DAY4_OF_WEEK:Ljava/lang/String; = "weather_sp_day4_of_week"

.field private static final WEATHER_SP_DAY4_TEMP:Ljava/lang/String; = "weather_sp_day4_temp"

.field private static final WEATHER_SP_PROV_POSITION:Ljava/lang/String; = "weather_sp_prov_pos"

.field private static final WEATHER_SP_SUGGESTION:Ljava/lang/String; = "weather_sp_suggestion"

.field private static final WEATHER_SP_UPADATETIME:Ljava/lang/String; = "weather_sp_upadatetime"

.field private static final XIAMEN_LAT:Ljava/lang/String; = "24486000"

.field private static final XIAMEN_LON:Ljava/lang/String; = "118140000"


# instance fields
.field public _handler:Landroid/os/Handler;

.field private city:Lcom/teewoo/app/bus/model/weather/City;

.field private cityClick:Landroid/view/View$OnClickListener;

.field private cityInfo:Lcom/teewoo/app/bus/model/weather/City;

.field private cityName:Ljava/lang/String;

.field private cityPosition:I

.field private cityView:Landroid/widget/TextView;

.field private conditionView:Landroid/widget/TextView;

.field private conditionView_1:Landroid/widget/TextView;

.field private conditionView_2:Landroid/widget/TextView;

.field private conditionView_3:Landroid/widget/TextView;

.field private conditionView_4:Landroid/widget/TextView;

.field private context:Landroid/content/Context;

.field private dayofWeekView_1:Landroid/widget/TextView;

.field private dayofWeekView_2:Landroid/widget/TextView;

.field private dayofWeekView_3:Landroid/widget/TextView;

.field private dayofWeekView_4:Landroid/widget/TextView;

.field private factory:Landroid/view/LayoutInflater;

.field private humidityView:Landroid/widget/TextView;

.field private itemWeatherImgView_1:Landroid/widget/ImageView;

.field private itemWeatherImgView_2:Landroid/widget/ImageView;

.field private itemWeatherImgView_3:Landroid/widget/ImageView;

.field private itemWeatherImgView_4:Landroid/widget/ImageView;

.field private progress:Landroid/app/ProgressDialog;

.field private provPosition:I

.field private refreshClick:Landroid/view/View$OnClickListener;

.field private refreshView:Landroid/widget/ImageView;

.field showprogressdialog_thread:Ljava/lang/Thread;

.field private suggestView:Landroid/widget/TextView;

.field private tempAreaView_1:Landroid/widget/TextView;

.field private tempAreaView_2:Landroid/widget/TextView;

.field private tempAreaView_3:Landroid/widget/TextView;

.field private tempAreaView_4:Landroid/widget/TextView;

.field private temperatureView:Landroid/widget/TextView;

.field private updateTimeView:Landroid/widget/TextView;

.field private weatherImgView:Landroid/widget/ImageView;

.field private windView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    const/4 v2, 0x0

    const/4 v1, -0x1

    .line 234
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 73
    const-string v0, "\u53a6\u95e8"

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityName:Ljava/lang/String;

    .line 75
    iput-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    .line 77
    iput-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityInfo:Lcom/teewoo/app/bus/model/weather/City;

    .line 89
    iput v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->provPosition:I

    .line 90
    iput v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityPosition:I

    .line 94
    new-instance v0, Lcom/teewoo/app/bus/ui/WeatheTab$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$1;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityClick:Landroid/view/View$OnClickListener;

    .line 213
    new-instance v0, Lcom/teewoo/app/bus/ui/WeatheTab$2;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$2;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->refreshClick:Landroid/view/View$OnClickListener;

    .line 631
    new-instance v0, Lcom/teewoo/app/bus/ui/WeatheTab$3;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$3;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->_handler:Landroid/os/Handler;

    .line 235
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    .line 236
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->factory:Landroid/view/LayoutInflater;

    .line 237
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/view/LayoutInflater;
    .locals 1
    .parameter

    .prologue
    .line 71
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->factory:Landroid/view/LayoutInflater;

    return-object v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/teewoo/app/bus/ui/WeatheTab;)Lcom/teewoo/app/bus/model/weather/City;
    .locals 1
    .parameter

    .prologue
    .line 75
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    return-object v0
.end method

.method static synthetic access$11(Lcom/teewoo/app/bus/ui/WeatheTab;Lcom/teewoo/app/bus/model/weather/City;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 366
    invoke-direct {p0, p1}, Lcom/teewoo/app/bus/ui/WeatheTab;->showWeatherInfo(Lcom/teewoo/app/bus/model/weather/City;)V

    return-void
.end method

.method static synthetic access$12(Lcom/teewoo/app/bus/ui/WeatheTab;)V
    .locals 0
    .parameter

    .prologue
    .line 536
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/WeatheTab;->saveWeatherForNetworkFailure()V

    return-void
.end method

.method static synthetic access$13(Lcom/teewoo/app/bus/ui/WeatheTab;)Z
    .locals 1
    .parameter

    .prologue
    .line 613
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/WeatheTab;->isFirstInstalled()Z

    move-result v0

    return v0
.end method

.method static synthetic access$14(Lcom/teewoo/app/bus/ui/WeatheTab;)V
    .locals 0
    .parameter

    .prologue
    .line 326
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeather()V

    return-void
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/WeatheTab;)I
    .locals 1
    .parameter

    .prologue
    .line 89
    iget v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->provPosition:I

    return v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/WeatheTab;Ljava/lang/String;Ljava/util/List;)I
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 310
    invoke-direct {p0, p1, p2}, Lcom/teewoo/app/bus/ui/WeatheTab;->getProvOrCityPosition(Ljava/lang/String;Ljava/util/List;)I

    move-result v0

    return v0
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/WeatheTab;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 89
    iput p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->provPosition:I

    return-void
.end method

.method static synthetic access$5(Lcom/teewoo/app/bus/ui/WeatheTab;)I
    .locals 1
    .parameter

    .prologue
    .line 90
    iget v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityPosition:I

    return v0
.end method

.method static synthetic access$6(Lcom/teewoo/app/bus/ui/WeatheTab;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 90
    iput p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityPosition:I

    return-void
.end method

.method static synthetic access$7(Lcom/teewoo/app/bus/ui/WeatheTab;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 73
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityName:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$8(Lcom/teewoo/app/bus/ui/WeatheTab;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 92
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->progress:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$9(Lcom/teewoo/app/bus/ui/WeatheTab;)V
    .locals 0
    .parameter

    .prologue
    .line 198
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/WeatheTab;->only_getweather_data()V

    return-void
.end method

.method private getProvOrCityPosition(Ljava/lang/String;Ljava/util/List;)I
    .locals 3
    .parameter "name"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)I"
        }
    .end annotation

    .prologue
    .line 311
    .local p2, list:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    const/4 v1, 0x0

    .line 312
    .local v1, pos:I
    const/4 v0, 0x0

    .end local p0
    .local v0, i:I
    :goto_0
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v2

    if-lt v0, v2, :cond_0

    .line 318
    return v1

    .line 313
    :cond_0
    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-virtual {p1, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 314
    move v1, v0

    .line 312
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private getWeather()V
    .locals 5

    .prologue
    .line 327
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    invoke-static {v1}, Lcom/teewoo/app/bus/util/Utils;->getNetworkStatus(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 329
    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    if-nez v1, :cond_1

    .line 330
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityName:Ljava/lang/String;

    const-string v3, "24486000"

    .line 331
    const-string v4, "118140000"

    .line 330
    invoke-static {v1, v2, v3, v4}, Lcom/teewoo/app/bus/util/weather/WeatherUtil;->getWeather(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/teewoo/app/bus/model/weather/City;

    move-result-object v1

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    .line 332
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    if-eqz v1, :cond_0

    .line 334
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/WeatheTab;->saveWeatherForNetworkFailure()V

    .line 343
    :goto_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->_handler:Landroid/os/Handler;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 348
    :goto_1
    return-void

    .line 336
    :cond_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    const v2, 0x7f080017

    invoke-static {v1, v2}, Lcom/teewoo/app/bus/util/DialogUtil;->baseDialog(Landroid/content/Context;I)V

    goto :goto_0

    .line 339
    :cond_1
    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    .line 340
    sget-object v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v1, v2}, Lcom/teewoo/app/bus/db/MySqliteHelper;->getCityByLocation(Landroid/location/Location;)Lcom/teewoo/app/bus/model/weather/City;

    move-result-object v0

    .line 341
    .local v0, cityInfo:Lcom/teewoo/app/bus/model/weather/City;
    invoke-direct {p0, v0}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeather(Lcom/teewoo/app/bus/model/weather/City;)V

    goto :goto_0

    .line 346
    .end local v0           #cityInfo:Lcom/teewoo/app/bus/model/weather/City;
    :cond_2
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->_handler:Landroid/os/Handler;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1
.end method

.method private getWeather(Lcom/teewoo/app/bus/model/weather/City;)V
    .locals 4
    .parameter "cityInfo"

    .prologue
    .line 357
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getName()Ljava/lang/String;

    move-result-object v1

    .line 358
    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getLat()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getLon()Ljava/lang/String;

    move-result-object v3

    .line 357
    invoke-static {v0, v1, v2, v3}, Lcom/teewoo/app/bus/util/weather/WeatherUtil;->getWeather(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/teewoo/app/bus/model/weather/City;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    .line 359
    return-void
.end method

.method private isFirstInstalled()Z
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 614
    sget-object v1, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 615
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    .line 616
    const-string v2, "mypreferences"

    .line 615
    invoke-virtual {v1, v2, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    sput-object v1, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 617
    :cond_0
    sget-object v1, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 618
    const-string v2, "weather_sp_currenent_conditon"

    const/4 v3, 0x0

    .line 617
    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 619
    .local v0, condition:Ljava/lang/String;
    if-nez v0, :cond_1

    const/4 v1, 0x1

    :goto_0
    return v1

    :cond_1
    move v1, v4

    goto :goto_0
.end method

.method private only_getweather_data()V
    .locals 3

    .prologue
    .line 199
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    invoke-static {v1}, Lcom/teewoo/app/bus/util/Utils;->getNetworkStatus(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 201
    :try_start_0
    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/teewoo/app/bus/db/MySqliteHelper;->findCityByName(Ljava/lang/String;)Lcom/teewoo/app/bus/model/weather/City;

    move-result-object v1

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityInfo:Lcom/teewoo/app/bus/model/weather/City;

    .line 202
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityInfo:Lcom/teewoo/app/bus/model/weather/City;

    invoke-direct {p0, v1}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeather(Lcom/teewoo/app/bus/model/weather/City;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 207
    :goto_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->_handler:Landroid/os/Handler;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 211
    :goto_1
    return-void

    .line 203
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 204
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 205
    const-string v1, "DouDou"

    const-string v2, "Weather findCityByName Failure"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 209
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->_handler:Landroid/os/Handler;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1
.end method

.method private saveWeatherForNetworkFailure()V
    .locals 10

    .prologue
    const/4 v9, 0x3

    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 537
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    if-nez v3, :cond_1

    .line 606
    .end local p0
    :cond_0
    :goto_0
    return-void

    .line 540
    .restart local p0
    :cond_1
    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    if-nez v3, :cond_2

    .line 541
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    .line 542
    const-string v4, "mypreferences"

    .line 541
    invoke-virtual {v3, v4, v6}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    sput-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 543
    :cond_2
    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 544
    .local v1, editor:Landroid/content/SharedPreferences$Editor;
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/City;->getCityweather()Lcom/teewoo/app/bus/model/weather/Weather;

    move-result-object v3

    .line 545
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/Weather;->getCurrentCondition()Lcom/teewoo/app/bus/model/weather/CurrentCondition;

    move-result-object v0

    .line 546
    .local v0, condition:Lcom/teewoo/app/bus/model/weather/CurrentCondition;
    if-eqz v0, :cond_0

    .line 548
    const-string v3, "weather_sp_cityname"

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityName:Ljava/lang/String;

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 549
    const-string v3, "weather_sp_currenent_conditon"

    .line 550
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getCondition()Ljava/lang/String;

    move-result-object v4

    .line 549
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 552
    const-string v3, "weather_sp_currenent_humidity"

    .line 553
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getHumidity()Ljava/lang/String;

    move-result-object v4

    .line 552
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 554
    const-string v3, "weather_sp_currenent_temp"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getTemp_c()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 555
    const-string v5, "\u00b0C"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 554
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 556
    const-string v3, "weather_sp_currenent_wind"

    .line 557
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getWind_condition()Ljava/lang/String;

    move-result-object v4

    .line 556
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 558
    const-string v3, "weather_sp_suggestion"

    .line 559
    invoke-static {v0}, Lcom/teewoo/app/bus/model/weather/Weather;->getSuggestion(Lcom/teewoo/app/bus/model/weather/CurrentCondition;)Ljava/lang/String;

    move-result-object v4

    .line 558
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 560
    const-string v3, "weather_sp_upadatetime"

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/weather/City;->getUpdateTime()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 561
    const-string v3, "weather_sp_currenent_icon"

    .line 562
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getIcon()Ljava/lang/String;

    move-result-object v4

    .line 561
    invoke-virtual {p0, v4}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 563
    const-string v3, "weather_sp_prov_pos"

    iget v4, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->provPosition:I

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 564
    const-string v3, "weather_sp_city_pos"

    iget v4, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityPosition:I

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 565
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->city:Lcom/teewoo/app/bus/model/weather/City;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/City;->getCityweather()Lcom/teewoo/app/bus/model/weather/Weather;

    move-result-object v3

    .line 566
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/Weather;->getForecasts()Ljava/util/List;

    move-result-object v2

    .line 567
    .local v2, forecasts:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/weather/ForecastCondition;>;"
    if-eqz v2, :cond_0

    .line 569
    const-string v4, "weather_sp_day1_icon"

    invoke-interface {v2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 570
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v3

    .line 569
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 571
    const-string v4, "weather_sp_day1_condition"

    invoke-interface {v2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 572
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v3

    .line 571
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 573
    const-string v4, "weather_sp_day1_temp"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-interface {v2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v5, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "~"

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 574
    invoke-interface {v2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, "\u00b0C"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 573
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 575
    const-string v4, "weather_sp_day1_of_week"

    invoke-interface {v2, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 576
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v3

    .line 575
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 578
    const-string v4, "weather_sp_day2_icon"

    invoke-interface {v2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 579
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v3

    .line 578
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 580
    const-string v4, "weather_sp_day2_condition"

    invoke-interface {v2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 581
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v3

    .line 580
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 582
    const-string v4, "weather_sp_day2_temp"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-interface {v2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v5, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "~"

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 583
    invoke-interface {v2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, "\u00b0C"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 582
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 584
    const-string v4, "weather_sp_day2_of_week"

    invoke-interface {v2, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 585
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v3

    .line 584
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 587
    const-string v4, "weather_sp_day3_icon"

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 588
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v3

    .line 587
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 589
    const-string v4, "weather_sp_day3_condition"

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 590
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v3

    .line 589
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 591
    const-string v4, "weather_sp_day3_temp"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v5, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "~"

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 592
    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, "\u00b0C"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 591
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 593
    const-string v4, "weather_sp_day3_of_week"

    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 594
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v3

    .line 593
    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 596
    const-string v4, "weather_sp_day4_icon"

    invoke-interface {v2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 597
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v3

    .line 596
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v1, v4, v3}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 598
    const-string v3, "weather_sp_day4_condition"

    invoke-interface {v2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 599
    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v4

    .line 598
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 600
    const-string v3, "weather_sp_day4_temp"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-interface {v2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "~"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 601
    invoke-interface {v2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\u00b0C"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 600
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 602
    const-string v3, "weather_sp_day4_of_week"

    invoke-interface {v2, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 603
    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v4

    .line 602
    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 605
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto/16 :goto_0
.end method

.method private showWeatherInfo(Lcom/teewoo/app/bus/model/weather/City;)V
    .locals 10
    .parameter "city"

    .prologue
    const v9, 0x7f070016

    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 367
    if-nez p1, :cond_1

    .line 368
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 369
    const-string v4, "weather_sp_cityname"

    const-string v5, ""

    .line 368
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 370
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->temperatureView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 371
    const-string v4, "weather_sp_currenent_temp"

    const-string v5, ""

    .line 370
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 372
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 373
    const-string v4, "weather_sp_currenent_conditon"

    const-string v5, ""

    .line 372
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 374
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->humidityView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 375
    const-string v4, "weather_sp_currenent_humidity"

    const-string v5, ""

    .line 374
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 376
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->windView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 377
    const-string v4, "weather_sp_currenent_wind"

    const-string v5, ""

    .line 376
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 378
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->weatherImgView:Landroid/widget/ImageView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 379
    const-string v4, "weather_sp_currenent_icon"

    const v5, 0x7f020038

    .line 378
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 380
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->updateTimeView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 381
    const-string v4, "weather_sp_upadatetime"

    const-string v5, ""

    .line 380
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 382
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->suggestView:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 383
    const-string v4, "weather_sp_suggestion"

    const-string v5, ""

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "\u996e\u98df\u5efa\u8bae\uff1a"

    .line 382
    invoke-static {v3, v4, v9}, Lcom/teewoo/app/bus/util/Utils;->highlightKeyword(Ljava/lang/String;Ljava/lang/String;I)Landroid/text/SpannableStringBuilder;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 386
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_1:Landroid/widget/ImageView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 387
    const-string v4, "weather_sp_day1_icon"

    const v5, 0x7f020039

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 386
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 388
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_1:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 389
    const-string v4, "weather_sp_day1_condition"

    const-string v5, ""

    .line 388
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 390
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_1:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 391
    const-string v4, "weather_sp_day1_of_week"

    const-string v5, ""

    .line 390
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 392
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_1:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 393
    const-string v4, "weather_sp_day1_temp"

    const-string v5, ""

    .line 392
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 395
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_2:Landroid/widget/ImageView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 396
    const-string v4, "weather_sp_day2_icon"

    const v5, 0x7f02003a

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 395
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 397
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_2:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 398
    const-string v4, "weather_sp_day2_condition"

    const-string v5, ""

    .line 397
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 399
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_2:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 400
    const-string v4, "weather_sp_day2_of_week"

    const-string v5, ""

    .line 399
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 401
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_2:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 402
    const-string v4, "weather_sp_day1_temp"

    const-string v5, ""

    .line 401
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 404
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_3:Landroid/widget/ImageView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 405
    const-string v4, "weather_sp_day3_icon"

    const v5, 0x7f02003b

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 404
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 406
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_3:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 407
    const-string v4, "weather_sp_day3_condition"

    const-string v5, ""

    .line 406
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 408
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_3:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 409
    const-string v4, "weather_sp_day3_of_week"

    const-string v5, ""

    .line 408
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 410
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_3:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 411
    const-string v4, "weather_sp_day3_temp"

    const-string v5, ""

    .line 410
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 413
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_4:Landroid/widget/ImageView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 414
    const-string v4, "weather_sp_day4_icon"

    const v5, 0x7f02003c

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 413
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 415
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_4:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 416
    const-string v4, "weather_sp_day4_condition"

    const-string v5, ""

    .line 415
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 417
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_4:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 418
    const-string v4, "weather_sp_day4_of_week"

    const-string v5, ""

    .line 417
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 419
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_4:Landroid/widget/TextView;

    sget-object v3, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    .line 420
    const-string v4, "weather_sp_day4_temp"

    const-string v5, ""

    .line 419
    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 479
    .end local p0
    :cond_0
    :goto_0
    return-void

    .line 423
    .restart local p0
    :cond_1
    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getCityweather()Lcom/teewoo/app/bus/model/weather/Weather;

    move-result-object v2

    .line 424
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/Weather;->getCurrentCondition()Lcom/teewoo/app/bus/model/weather/CurrentCondition;

    move-result-object v0

    .line 425
    .local v0, condition:Lcom/teewoo/app/bus/model/weather/CurrentCondition;
    if-eqz v0, :cond_0

    .line 428
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->temperatureView:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getTemp_c()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\u00b0C"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 429
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityView:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 430
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getCondition()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 431
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->humidityView:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getHumidity()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 432
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->windView:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getWind_condition()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 433
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->weatherImgView:Landroid/widget/ImageView;

    .line 434
    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/weather/CurrentCondition;->getIcon()Ljava/lang/String;

    move-result-object v3

    .line 433
    invoke-virtual {p0, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 435
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->updateTimeView:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getUpdateTime()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 436
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->suggestView:Landroid/widget/TextView;

    .line 438
    invoke-static {v0}, Lcom/teewoo/app/bus/model/weather/Weather;->getSuggestion(Lcom/teewoo/app/bus/model/weather/CurrentCondition;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "\u996e\u98df\u5efa\u8bae\uff1a"

    .line 437
    invoke-static {v3, v4, v9}, Lcom/teewoo/app/bus/util/Utils;->highlightKeyword(Ljava/lang/String;Ljava/lang/String;I)Landroid/text/SpannableStringBuilder;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 441
    invoke-virtual {p1}, Lcom/teewoo/app/bus/model/weather/City;->getCityweather()Lcom/teewoo/app/bus/model/weather/Weather;

    move-result-object v2

    .line 442
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/Weather;->getForecasts()Ljava/util/List;

    move-result-object v1

    .line 443
    .local v1, forecasts:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/weather/ForecastCondition;>;"
    if-eqz v1, :cond_0

    .line 446
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_1:Landroid/widget/ImageView;

    .line 447
    invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 448
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v2

    .line 447
    invoke-virtual {p0, v2}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 449
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_1:Landroid/widget/TextView;

    invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 450
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_1:Landroid/widget/TextView;

    invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 451
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_1:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v4, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "~"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 452
    invoke-interface {v1, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v4, "\u00b0C"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 451
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 454
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_2:Landroid/widget/ImageView;

    .line 455
    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 456
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v2

    .line 455
    invoke-virtual {p0, v2}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 457
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_2:Landroid/widget/TextView;

    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 458
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_2:Landroid/widget/TextView;

    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 459
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_2:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v4, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "~"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 460
    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v4, "\u00b0C"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 459
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 462
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_3:Landroid/widget/ImageView;

    .line 463
    invoke-interface {v1, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 464
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v2

    .line 463
    invoke-virtual {p0, v2}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 465
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_3:Landroid/widget/TextView;

    invoke-interface {v1, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 466
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_3:Landroid/widget/TextView;

    invoke-interface {v1, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 467
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_3:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-interface {v1, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v4, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "~"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    .line 468
    invoke-interface {v1, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v4, "\u00b0C"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 467
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 470
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_4:Landroid/widget/ImageView;

    .line 471
    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    .line 472
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getIcon()Ljava/lang/String;

    move-result-object v2

    .line 471
    invoke-virtual {p0, v2}, Lcom/teewoo/app/bus/ui/WeatheTab;->getWeatherResource(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 473
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_4:Landroid/widget/TextView;

    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getCondition()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 474
    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_4:Landroid/widget/TextView;

    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getDay_of_week()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 475
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_4:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getLow()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "~"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 476
    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/teewoo/app/bus/model/weather/ForecastCondition;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/weather/ForecastCondition;->getHigh()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\u00b0C"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 475
    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method


# virtual methods
.method public createTabContent(Ljava/lang/String;)Landroid/view/View;
    .locals 4
    .parameter "tag"

    .prologue
    .line 242
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->factory:Landroid/view/LayoutInflater;

    const v2, 0x7f030031

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 245
    .local v0, view:Landroid/view/View;
    const v1, 0x7f0a00bd

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 244
    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->temperatureView:Landroid/widget/TextView;

    .line 246
    const v1, 0x7f0a0096

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityView:Landroid/widget/TextView;

    .line 247
    const v1, 0x7f0a00be

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView:Landroid/widget/TextView;

    .line 248
    const v1, 0x7f0a00bf

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->humidityView:Landroid/widget/TextView;

    .line 249
    const v1, 0x7f0a00c0

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->windView:Landroid/widget/TextView;

    .line 250
    const v1, 0x7f0a00a8

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->updateTimeView:Landroid/widget/TextView;

    .line 252
    const v1, 0x7f0a00bb

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 251
    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->weatherImgView:Landroid/widget/ImageView;

    .line 253
    const v1, 0x7f0a00a9

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->refreshView:Landroid/widget/ImageView;

    .line 255
    const v1, 0x7f0a00ab

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_1:Landroid/widget/ImageView;

    .line 256
    const v1, 0x7f0a00af

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_2:Landroid/widget/ImageView;

    .line 257
    const v1, 0x7f0a00b3

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_3:Landroid/widget/ImageView;

    .line 258
    const v1, 0x7f0a00b7

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->itemWeatherImgView_4:Landroid/widget/ImageView;

    .line 260
    const v1, 0x7f0a00ac

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_1:Landroid/widget/TextView;

    .line 261
    const v1, 0x7f0a00b0

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_2:Landroid/widget/TextView;

    .line 262
    const v1, 0x7f0a00b4

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_3:Landroid/widget/TextView;

    .line 263
    const v1, 0x7f0a00b8

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->conditionView_4:Landroid/widget/TextView;

    .line 265
    const v1, 0x7f0a00ad

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_1:Landroid/widget/TextView;

    .line 266
    const v1, 0x7f0a00b1

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_2:Landroid/widget/TextView;

    .line 267
    const v1, 0x7f0a00b5

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_3:Landroid/widget/TextView;

    .line 268
    const v1, 0x7f0a00b9

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->dayofWeekView_4:Landroid/widget/TextView;

    .line 270
    const v1, 0x7f0a00ae

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_1:Landroid/widget/TextView;

    .line 271
    const v1, 0x7f0a00b2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_2:Landroid/widget/TextView;

    .line 272
    const v1, 0x7f0a00b6

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_3:Landroid/widget/TextView;

    .line 273
    const v1, 0x7f0a00ba

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->tempAreaView_4:Landroid/widget/TextView;

    .line 274
    const v1, 0x7f0a00aa

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->suggestView:Landroid/widget/TextView;

    .line 276
    new-instance v1, Landroid/app/ProgressDialog;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->context:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->progress:Landroid/app/ProgressDialog;

    .line 277
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->progress:Landroid/app/ProgressDialog;

    const-string v2, "\u8bf7\u7a0d\u4faf"

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 278
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->progress:Landroid/app/ProgressDialog;

    const-string v2, "\u6b63\u5728\u52a0\u8f7d\u5929\u6c14\u4fe1\u606f..."

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 280
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityView:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->cityClick:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 281
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->refreshView:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->refreshClick:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 282
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->progress:Landroid/app/ProgressDialog;

    invoke-virtual {v1}, Landroid/app/ProgressDialog;->show()V

    .line 283
    new-instance v1, Lcom/teewoo/app/bus/ui/WeatheTab$4;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/WeatheTab$4;-><init>(Lcom/teewoo/app/bus/ui/WeatheTab;)V

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->showprogressdialog_thread:Ljava/lang/Thread;

    .line 299
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/WeatheTab;->showprogressdialog_thread:Ljava/lang/Thread;

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 301
    return-object v0
.end method

.method public getWeatherResource(Ljava/lang/String;)I
    .locals 6
    .parameter "iconName"

    .prologue
    const v5, 0x7f020042

    const v4, 0x7f020040

    const v3, 0x7f02003a

    const v2, 0x7f02003d

    const/4 v1, -0x1

    .line 488
    const-string v0, "chance_of_rain"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_0

    .line 489
    const v0, 0x7f02003b

    .line 527
    :goto_0
    return v0

    .line 490
    :cond_0
    const-string v0, "chance_of_snow"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_1

    move v0, v4

    .line 491
    goto :goto_0

    .line 492
    :cond_1
    const-string v0, "chance_of_storm"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_2

    .line 493
    const v0, 0x7f020038

    goto :goto_0

    .line 494
    :cond_2
    const-string v0, "cloudy"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_3

    move v0, v2

    .line 495
    goto :goto_0

    .line 496
    :cond_3
    const-string v0, "dust"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_4

    move v0, v2

    .line 497
    goto :goto_0

    .line 498
    :cond_4
    const-string v0, "fog"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_5

    move v0, v2

    .line 499
    goto :goto_0

    .line 500
    :cond_5
    const-string v0, "haze"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_6

    move v0, v2

    .line 501
    goto :goto_0

    .line 502
    :cond_6
    const-string v0, "mist"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_7

    move v0, v2

    .line 503
    goto :goto_0

    .line 504
    :cond_7
    const-string v0, "rain"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_8

    .line 505
    const v0, 0x7f020039

    goto :goto_0

    .line 506
    :cond_8
    const-string v0, "mist"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_9

    move v0, v3

    .line 507
    goto :goto_0

    .line 508
    :cond_9
    const-string v0, "mostly_cloudy"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_a

    .line 509
    const v0, 0x7f02003f

    goto :goto_0

    .line 510
    :cond_a
    const-string v0, "mostly_sunny"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_b

    move v0, v5

    .line 511
    goto :goto_0

    .line 512
    :cond_b
    const-string v0, "partly_cloudy"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_c

    .line 513
    const v0, 0x7f020041

    goto :goto_0

    .line 514
    :cond_c
    const-string v0, "sleet"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_d

    move v0, v4

    .line 515
    goto/16 :goto_0

    .line 516
    :cond_d
    const-string v0, "smoke"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_e

    move v0, v2

    .line 517
    goto/16 :goto_0

    .line 518
    :cond_e
    const-string v0, "snow"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_f

    .line 519
    const v0, 0x7f02003e

    goto/16 :goto_0

    .line 520
    :cond_f
    const-string v0, "storm"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_10

    move v0, v3

    .line 521
    goto/16 :goto_0

    .line 522
    :cond_10
    const-string v0, "sunny"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_11

    move v0, v5

    .line 523
    goto/16 :goto_0

    .line 524
    :cond_11
    const-string v0, "thunderstorm"

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v1, :cond_12

    .line 525
    const v0, 0x7f02003c

    goto/16 :goto_0

    :cond_12
    move v0, v2

    .line 527
    goto/16 :goto_0
.end method
